<div>
    <div>
        <div class="panel panel-default  m-n">
            <div class="panel-heading font-bold">
                设置用户身份
            </div>
            <div class="panel-body">
                <form name="vipHistoryForm" class="form-horizontal" role="form">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">姓名：</label>

                        <div class="col-sm-6">
                            <input type="text" name="name" class="form-control" placeholder="请输入名字" ng-model="userVipVO.name"
                                   ng-disabled="nameUnchange==1" required>
                        </div>
                        <div ng-if="vipHistoryForm.name.$touched" class="col-sm-8 form-text m-t-xs pull-right">
                            <p ng-if="vipHistoryForm.name.$error.required" class="text-danger h6  ">姓名是必需的</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-4 control-label">联系方式：</label>
                        <div class="col-sm-6">
                            <input type="text" name="mobilePhone" class="form-control" placeholder="请输入联系方式"
                                   ng-model="userVipVO.mobilePhone" ng-disabled="mobilePhoneUnchange==1" required>
                        </div>
                        <div ng-if="vipHistoryForm.mobilePhone.$touched" class="col-sm-8 form-text m-t-xs pull-right">
                            <p ng-if="vipHistoryForm.mobilePhone.$error.required" class="text-danger h6 ">联系方式是必需的</p>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-4 control-label">选择身份：</label>
                        <div class="col-sm-6">
                            <select class="form-control" name="vipId" ng-model="userVipVO.vipId"
                                    ng-init="userVipVO.vipId = userVipVO.vipId == null ? '' : userVipVO.vipId; " required>
                                <option value="" ng-if="userVipVO.vipId == ''">请选择用户身份</option>
                                <option value="userVipVO.vipId" ng-if="userVipVO.vipId != null && userVipVO.vipIdentity==0">普通用户</option>
                                <option value="userVipVO.vipId" ng-if="userVipVO.vipId != null && userVipVO.vipIdentity==1">VIP用户</option>
                                <option value="userVipVO.vipId" ng-if="userVipVO.vipId != null && userVipVO.vipIdentity==2">渠道合伙人</option>
                                <option ng-repeat="v in vipVO" value="{{v.id}}" ng-show="v.id != userVipVO.vipId">{{v.vipName}}</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-4 control-label">是否赠送现金分：</label>
                        <div class="col-sm-2">
                            <div class="radio inline m-r-n">
                                <label class="i-checks i-checks-sm">
                                    <input name="isPresent" type="radio" checked="checked" ng-model="userVipVO.isPresent" value="0">
                                    <i></i>
                                </label>
                            </div>
                            <p class="inline m-n">不赠送</p>
                        </div>
                        <div class="col-sm-2">
                            <div class="radio inline m-r-n">
                                <label class="i-checks i-checks-sm">
                                    <input name="isPresent"  type="radio" ng-model="userVipVO.isPresent" value="1">
                                    <i></i>
                                </label>
                            </div>
                            <p class="inline m-n">赠送</p>
                        </div>
                    </div>
                    <div class="form-group" ng-if="userVipVO.isPresent==1">
                        <label class="col-sm-4 control-label">赠送现金分：</label>
                        <div class="col-sm-6">
                            <input type="text" name="presentIntegral" class="form-control" placeholder="请输入赠送的现金分"
                                   ng-model="userVipVO.presentIntegral" required>
                        </div>
                        <div ng-if="vipHistoryForm.presentIntegral.$touched" class="col-sm-8 form-text m-t-xs pull-right">
                            <p ng-if="vipHistoryForm.presentIntegral.$error.required" class="text-danger h6 ">赠送的现金分是必需的</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="pull-right">
                            <button type="submit" ng-click="ok()" class="btn m-b-xs w-xs btn-info m-r-sm" ng-disabled="vipHistoryForm.$invalid">确定</button>
                            <button class="btn m-b-xs w-xs btn-default" ng-click="cancel()">取消</button>
                        </div>
                    </div>
                </form>

            </div>
        </div>
    </div>
</div>